package com.example.take_out_file.exceptions.enumetation;

import lombok.Getter;

/**
 * @Description:none
 * @Author:yyyyys、
 * @Date:2024/6/29 1:37
 * @Version:1.0
 **/

@Getter
public enum ResponseEnum {

    SUCCESS(10000,"成功"),
    ERROR(50000,"失败"),
    UNKNOWN_ERROR(-1,"未知错误"),
    INVALID_ACCOUNT(50001,"账号或密码不正确"),
    TOKEN_ERROR(50002,"token错误"),
    TOKEN_EXPIRED(50003,"token过期");

    private Integer code;
    private String message;

    ResponseEnum(Integer code,String message){
        this.code = code;
        this.message = message;
    }
}
